package com.hdcircles.autoform.model.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by hdcircles on 2016/10/11.
 */

public  class ChooseQuestionBean  implements Parcelable {

    private String Info;

    private boolean IsSelect;

    private Integer Question_Id;

    public String getInfo() {
        return Info;
    }

    public void setInfo(String info) {
        this.Info = info;
    }

    public boolean getIsSelect() {
        return IsSelect;
    }

    public void setIsSelect(boolean isSelect) {
        this.IsSelect = isSelect;
    }



    public ChooseQuestionBean() {
    }


    public boolean isSelect() {
        return IsSelect;
    }

    public void setSelect(boolean select) {
        IsSelect = select;
    }

    public Integer getQuestion_Id() {
        return Question_Id;
    }

    public void setQuestion_Id(Integer question_Id) {
        Question_Id = question_Id;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.Info);
        dest.writeByte(this.IsSelect ? (byte) 1 : (byte) 0);
        dest.writeValue(this.Question_Id);
    }

    protected ChooseQuestionBean(Parcel in) {
        this.Info = in.readString();
        this.IsSelect = in.readByte() != 0;
        this.Question_Id = (Integer) in.readValue(Integer.class.getClassLoader());
    }

    public static final Creator<ChooseQuestionBean> CREATOR = new Creator<ChooseQuestionBean>() {
        @Override
        public ChooseQuestionBean createFromParcel(Parcel source) {
            return new ChooseQuestionBean(source);
        }

        @Override
        public ChooseQuestionBean[] newArray(int size) {
            return new ChooseQuestionBean[size];
        }
    };
}
